package com.hakim.wfb.admin.params.admin;

import com.hkfs.fundamental.api.params.SessionParameter;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 *
 */
public class ModifyRoleParam extends SessionParameter {

    @NotNull(message = "角色ID不能为空")
    private Long id;

    private Integer optlock;
    /**
     * 角色名称
     */
    @NotBlank(message = "角色名不能为空")
    private String roleName;
    /**
     * 有权限的菜单ID
     */
    private List<Integer> menuIds;

    private Long roleId;
//    /**
//     * 权限
//     */
//    private int[] powers;


    public Long getRoleId() {
        return roleId;
    }

    public void setRoleId(Long roleId) {
        this.roleId = roleId;
    }

    public Long getId() {
        return id;
    }
    public void setId(Long id) {
        this.id = id;
    }


    public List<Integer> getMenuIds() {
        return menuIds;
    }

    public void setMenuIds(List<Integer> menuIds) {
        this.menuIds = menuIds;
    }

    public Integer getOptlock() {
        return optlock;
    }

    public void setOptlock(Integer optlock) {
        this.optlock = optlock;
    }

    public String getRoleName() {
        return this.roleName;
    }
    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }
}
